#ifndef __PNG_H__
#define __PNG_H__

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <pthread.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <stdint.h>
#include <fcntl.h>
#include <stdbool.h>
#include <signal.h>
#include <pthread.h>
#include <linux/fb.h>
#include <errno.h>
#include "png.h"
#include "zlib.h"
#include "lcd.h"
#include "datatype.h"

#define PNG_BYTES_TO_CHECK   8
#define WITH_ALPHA           1
#define WITHOUT_ALPHA        0
int check_is_png(FILE *fp, const char *filename);
int load_png(const char *filename, struct img_info *pnginfo);
// void scale_image(const char *jpeg_buffer, int original_width, int original_height,
//                  char *scaled_buffer, int scaled_width, int scaled_height, int rgb_size);
// void show_img(struct lcd_info *lcdinfo,const char *filename);
#endif